function addSpecialChar(object){
  try{
    rteID=window.opener.insertSpecialCharInto;
    if(rteID&&(window.opener.document.getElementById(rteID))&&(oRTE = window.opener.document.getElementById(rteID).contentWindow)){
      pasteHtml(oRTE,object.innerHTML);
    }
    window.close();
  }catch(e){
    alert("addSpecialChar:"+e.message);
  }
}


function openSpecialChar(rteId){
  try{   
   window.insertSpecialCharInto=rteId;
   wnd=pop_up('/object.specialchars','750','600');
  }catch(e){
    alert("openSpecialChar:"+e.message);
  }
}


function overSpecialChar(object){
  try{
    var preview=getElement("specialchar_preview");
    var titlec =getElement("specialchar_title");
    var namec  =getElement("specialchar_name");
    name=object.getAttribute("name");
    title=object.getAttribute("title");
    preview.innerHTML=object.innerHTML;
    titlec.innerHTML=title;
    namec.innerHTML="&amp;"+name+";";
    object.className='specialchar_over';
  }catch(e){
    alert("overSpecialChar:"+e.message);
  }
}

function leaveSpecialChar(object){
  try{
    object.className='specialchar';
  }catch(e){
    alert("leaveSpecialChar:"+e.message);
  }
}
